<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/include/inc.jsp"%>
<!DOCTYPE html >
<html>
<head>
<%@ include file="/WEB-INF/view/jQgrid.jsp"%>
<link type="text/css" rel="stylesheet" href="<%=contextPath %>/static/bootstrap-fileinput/css/fileinput.css" />
<script type="text/javascript" src="<%=contextPath %>/static/bootstrap-fileinput/js/fileinput.js"></script>
<script type="text/javascript" src="<%=contextPath %>/static/bootstrap-fileinput/js/locales/zh.js"></script>
</head>
<body style="background-color: white;" class="gray-bg">
	<div class="ibox-content">
		<form class="form-horizontal m-t " id="signupForm" method="post" enctype="multipart/form-data">
		    <input type="hidden" name="id" value="${taskManager.id }" /> <!--id  -->
			<div class="form-group">
				<label class="col-sm-3 control-label">负责人：</label>
				<div class="col-sm-8">
					<span class="help-block" >${taskManager.chargeUser.truename }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">开始时间：</label>
				<div class="col-sm-8">
				    <span class="help-block" >${taskManager.startDate }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">结束时间：</label>
				<div class="col-sm-8">
				    <span class="help-block" >${taskManager.endDate }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">紧急程度：</label>
				<div class="col-sm-8">
				    <span class="help-block" >${fns:getDictLabel(taskManager.urgency,'task_urgency','')}</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">企业需求：</label>
				<div class="col-sm-8">
				    <span class="help-block" >${taskManager.companyPosition }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">任务详情：</label>
				<div class="col-sm-8">
				    <span class="help-block" >${taskManager.details }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">参与人员：</label>
				<div class="col-sm-8">
				    <span class="help-block" >${taskManager.userNames }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">进度相关图片：</label>
				<div class="col-sm-8 form-inline">
					<span class="help-block" id="picUrl">暂无</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label"> 备注 ：</label>
				<div class="col-sm-8">
				    <span class="help-block" >${taskManager.remark }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label"> 完成情况 ：</label>
				<div class="col-sm-8">
					<c:forEach items="${taskCompletions }" var="completion" varStatus="num">
					  <span class="help-block" >${completion.createUser.truename }在 ${completion.createDate.substring(0,19)} 完成${fns:getDictLabel(completion.type,'task_progress','')}</span>
					</c:forEach>
					<c:if test="${empty taskCompletions}">
				 	<span class="help-block" >暂无完成记录！</span>
				 	</c:if>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript">
	  $(function(){
		 var picurls = '${taskManager.fileNames }'; 
		 var picArr = new Array();
		 picArr = picurls.split(","); 
		 var pic="";
		 for (var i = 0; i < picArr.length; i++) {
			 var temppic = picArr[i];
	    		if(temppic!=""){
	    			pic += '<img src="<%=contextPath%>'+temppic+'" class="file-preview-image" style="max-width:100%;max-height:100%">';
	    		}
		}
		 $("#picUrl").html(pic);
	  });
	
	</script>
</body>
</html>